package com.itheima;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

public class ClassLoaderDemo {
    public static void main(String[] args) throws IOException {
        ClassLoader loader = ClassLoader.getSystemClassLoader();
        InputStream inputStream = loader.getResourceAsStream("prop.properties");
        /*InputStreamReader inputStreamReader =new InputStreamReader(inputStream);
        BufferedReader bufferedReader = new BufferedReader(inputStreamReader);*/
        Properties properties = new Properties();
        properties.load(inputStream);
        System.out.println(properties);
    }
}
